@import '../../../index.scss';

page {
  background-color: #f8f8f8;
}

.container {
  padding-bottom: 1rpx;
  display: flex;
  flex-direction: column;
  height: 100vh;

  .navbar {

    // background-color: red;
    // position: fixed;
    // top: 0;
    // left: 0;
    // z-index: 99;
    background-color: #fff;

    .capsule {
      // background-color: orange;
      position: relative;
      display: flex;
      align-items: center;
      width: 100%;

      image {
        height: 80%;
        margin-left: 30rpx;
      }
    }
  }

  .tabber {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    z-index: 1;
    display: flex;
    width: 100%;
    background-color: #fff;

    .fixed {
      position: fixed;
      left: 0;
      top: 0;
      z-index: 999;
      height: 100rpx;
      background-color: #fff;
      z-index: 999;
    }


    .scroll-view {
      box-sizing: border-box;
      width: 100vw;

      .topScol {
        // display: flex;
        white-space: nowrap;
        // background-color: red;
        // height: 100rpx;
        padding: 10rpx 0;
        padding-left: 10rpx;

        .tabber-list {
          padding: 0 20rpx;
          padding-bottom: 6rpx;
          color: #444;
          display: inline-block;
          text-align: center;
          white-space: nowrap;
          font-size: 28rpx;

          // margin-right: 10rpx;
          .split {
            width: 30rpx;
            height: 6rpx;
            margin: 0 auto;
            border-radius: 100px;
            margin-top: 4rpx;
          }

          &.active {
            font-weight: bold;

            .split {
              background-color: $primary-color;
            }
          }
        }
      }


    }
  }

  .swiper-content {
    height: 0;
    flex: 1;

    .scroll-view-content {
      height: 100%;

      .banner {
        // width: 100%;
        // margin: 30rpx;
        height: 330rpx;
        box-sizing: border-box;
        overflow: hidden;
        position: relative;


        .swiper {
          width: 100%;
          height: 100%;

          .swiper-item {

            padding: 20rpx;
            box-sizing: border-box;
          }

          image {
            width: 100%;
            height: 100%;

            border-radius: 16rpx;
            overflow: hidden;
          }
        }

        .tips {
          position: absolute;
          right: 40rpx;
          bottom: 40rpx;
          width: 50rpx;
          height: 25rpx;
          background-color: rgba($color: #313E48, $alpha: 0.4);
          font-size: 20rpx;
          color: #fff;
          justify-content: center;
          align-items: center;
          display: flex;
          border-radius: 100px;
        }
      }

      .list {
        display: flex;
        justify-content: space-around;
        padding: 0 20rpx;

        .item {
          display: flex;
          flex-direction: column;
          align-items: center;
          padding: 20rpx;
          box-sizing: border-box;

          .cover {
            background-color: #ccc;
            width: 70rpx;
            height: 70rpx;
            border-radius: 32rpx;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;

            &.jinx {
              background-color: #7872FE;
            }

            &.suiji {
              background-color: #FA977B;

              image {
                // transform: scale(.9);
              }
            }

            &.like {
              background-color: #C465FB;
            }

            &.ranking {
              background-color: #6785E5;
            }

            image {
              width: 50%;
              height: 50%;
            }
          }

          .name {
            font-size: 24rpx;
            color: #666;
            margin-top: 10rpx;
          }
        }
      }

      .recommend {
        display: flex;
        padding: 20rpx;
        padding-top: 10rpx;
        box-sizing: border-box;
        justify-content: space-between;

        .left {
          flex: 1;
          margin-right: 14rpx;

          .events {
            width: 100%;
            height: 160rpx;
            border-radius: 16rpx;
            overflow: hidden;
            position: relative;
            box-sizing: border-box;

            &::before {
              content: '';
              width: 100%;
              height: 100%;
              background-color: rgba($color: #000, $alpha: 0.2);
              position: absolute;
              top: 0;
              left: 0;
            }

            image {
              width: 100%;
              height: 100%;
              display: block;
            }

            .name {
              position: absolute;
              bottom: 20rpx;
              left: 30rpx;
              color: #fff;
              font-size: 28rpx;
              font-weight: bold;
            }
          }

          .video {
            width: 100%;
            height: 260rpx;
            border-radius: 16rpx;
            overflow: hidden;
            position: relative;
            box-sizing: border-box;
            margin-top: 14rpx;

            &::before {
              content: '';
              width: 100%;
              height: 100%;
              background-color: rgba($color: #000, $alpha: 0.2);
              position: absolute;
              top: 0;
              left: 0;
            }

            image {
              width: 100%;
              height: 100%;
              display: block;
            }

            .icon {
              width: 50rpx;
              height: 50rpx;
              position: absolute;
              top: 50%;
              left: 50%;
              transform: translate(-50%, -50%);
              z-index: 11;
              opacity: .6;
              border-radius: 100%;
              z-index: 2;

            }

            .name {
              position: absolute;
              bottom: 20rpx;
              left: 30rpx;
              color: #fff;
              font-size: 28rpx;
              font-weight: bold;
            }
          }
        }

        .right {
          flex: 1;

          .events {
            width: 100%;
            border-radius: 16rpx;
            overflow: hidden;
            position: relative;
            box-sizing: border-box;
            height: 260rpx;

            &::before {
              content: '';
              width: 100%;
              height: 100%;
              background-color: rgba($color: #000, $alpha: 0);
              position: absolute;
              top: 0;
              left: 0;
            }

            image {
              width: 100%;
              height: 100%;
              display: block;
            }

            .name {
              position: absolute;
              top: 20rpx;
              left: 30rpx;
              color: #fff;
              font-weight: 28rpx;
              font-weight: bold;
              display: flex;
              align-items: center;

              .icon {
                display: block;
                width: 36rpx;
                height: 36rpx;
                margin-right: 10rpx;
              }
            }
          }

          .video {
            width: 100%;
            height: 160rpx;

            border-radius: 16rpx;
            overflow: hidden;
            position: relative;
            box-sizing: border-box;
            margin-top: 14rpx;

            &::before {
              content: '';
              width: 100%;
              height: 100%;
              background-color: rgba($color: #000, $alpha: 0.2);
              position: absolute;
              top: 0;
              left: 0;
            }

            image {
              width: 100%;
              height: 100%;
              display: block;
            }

            .name {
              position: absolute;
              top: 20rpx;
              left: 30rpx;
              color: #fff;
              font-weight: 28rpx;
              font-weight: bold;
              display: flex;
              align-items: center;

              .icon {
                display: block;
                width: 36rpx;
                height: 36rpx;
                margin-right: 10rpx;
              }
            }
          }
        }

        // image {
        //   display: none;
        // }

        .right {
          flex: 1;
        }
      }

      .activeRanking {
        padding: 20rpx;
        box-sizing: border-box;
        padding-top: 0;
        padding-right: 0;

        .title {
          position: relative;
          display: flex;
          align-items: center;
          padding: 20rpx 0;
          justify-content: space-between;

          .left {
            display: flex;
            align-items: flex-end;

            .name {
              font-size: 34rpx;
              font-weight: bold;
            }

            .eng {
              font-size: 26rpx;
              margin-left: 10rpx;
              // font-style: italic;
              font-weight: bold;
              color: #ccc;
            }
          }

          .right {
            padding-right: 20rpx;
            display: flex;
            align-items: center;

            .more {
              font-size: 24rpx;
              color: #999;

            }

            .rg {
              height: 24rpx;
              opacity: .6;
            }
          }

        }

        .box {
          .topScol {
            white-space: nowrap;

            .item {
              display: inline-block;
              text-align: center;
              // width: 110rpx;
              width: 100rpx;
              margin-right: 30rpx;

              &:last-child {
                margin-right: 20rpx;
              }

              .avatar {
                width: 98rpx;
                height: 98rpx;
                border-radius: 100%;
                overflow: hidden;
                margin: 0 auto;

                image {
                  width: 100%;
                  height: 100%;
                }
              }

              .nikename {
                width: 100rpx;
                font-size: 20rpx;
                margin-top: 14rpx;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
              }
            }
          }


        }

      }

      .discover {
        box-sizing: border-box;
        padding-top: 0;

        .title {
          position: relative;
          display: flex;
          align-items: center;
          padding: 20rpx;
          // padding-top: 0;
          justify-content: space-between;

          .left {
            display: flex;
            align-items: flex-end;

            .name {
              font-size: 34rpx;
              font-weight: bold;
            }

            .eng {
              font-size: 26rpx;
              margin-left: 10rpx;
              // font-style: italic;
              font-weight: bold;
              color: #ccc;
            }
          }

          .right {
            padding-right: 20rpx;
            display: flex;
            align-items: center;

            .more {
              font-size: 24rpx;
              color: #999;

            }

            .rg {
              height: 24rpx;
              opacity: .6;
            }
          }

        }

        .box {
          .item {

            padding: 30rpx 20rpx;
            border-bottom: 1px solid #eee;

            &:first-child {
              padding-top: 0;
            }

            &:last-child {
              border: none;
            }

            .info {
              display: flex;
              justify-content: space-between;
              align-items: center;

              .left {
                display: flex;

                .avater {
                  width: 80rpx;
                  height: 80rpx;
                  border-radius: 100%;
                  overflow: hidden;
                  margin-right: 20rpx;

                  image {
                    width: 100%;
                    height: 100%;
                  }
                }

                .user {
                  display: flex;
                  flex-direction: column;
                  justify-content: space-around;

                  .name {
                    display: flex;
                    align-items: center;
                    font-size: 28rpx;
                    font-weight: bold;

                    .lv {
                      height: 30rpx;
                      margin-left: 10rpx;
                    }
                  }

                  .time {
                    font-size: 20rpx;
                    color: #999;
                  }
                }
              }

              .right {
                .more {
                  height: 36rpx;
                  opacity: .2;
                }
              }
            }

           

            .imageText {
              .topic {
                display: flex;
                flex-wrap: wrap;
                padding-top: 20rpx;
                margin-bottom: -10rpx;

                .tip {
                  font-size: 24rpx;
                  margin-right: 14rpx;
                  padding: 14rpx 16rpx;
                  background-color: #ececec;
                  border-radius: 10rpx;
                  display: flex;
                  color: #555;
                  align-items: center;
                  line-height: 0;
                  margin-bottom: 10rpx;

                  .icon {
                    height: 20rpx;
                    margin-right: 6rpx;
                  }
                }
              }

              .content {
                padding: 20rpx 0;
                padding-bottom: 0;

                .desc {
                  font-size: 28rpx;
                  color: #000;
                  display: -webkit-box;
                  -webkit-box-orient: vertical;
                  -webkit-line-clamp: 4;
                  /* 设置为3行 */
                  overflow: hidden;
                }

                .photoAlbum {
                  // display: flex;
                  // flex-wrap: wrap;
                  // justify-content: space-between;
                  // margin-top: 20rpx;
                  padding: 20rpx 0;
                  display: grid;
                  grid-template-columns: 1fr 1fr 1fr;
                  gap: 14rpx;

                  .photo {
                    // flex-basis: calc(33.33% - 10rpx);
                    width: 100%;
                    padding-bottom: 100%;
                    position: relative;
                    background-color: #fff;
                    border-radius: 14rpx;
                    overflow: hidden;


                    image {
                      position: absolute;
                      width: 100%;
                      height: 100%;
                      top: 0;
                      left: 0;
                    }

                    .more {
                      position: absolute;
                      right: 0;
                      bottom: 0;
                      width: 54rpx;
                      height: 54rpx;
                      background-color: #000;
                      font-size: 26rpx;
                      display: flex;
                      align-items: center;
                      justify-content: center;
                      color: #fff;
                      border-radius: 20rpx 0 0;
                      opacity: .6;
                      // font-weight: bold;
                    }
                  }
                }
              }
            }
            .topic {
              display: flex;
              flex-wrap: wrap;
              padding-top: 20rpx;
              margin-bottom: -10rpx;

              .tip {
                font-size: 24rpx;
                margin-right: 14rpx;
                padding: 14rpx 16rpx;
                background-color: #ececec;
                border-radius: 10rpx;
                display: flex;
                color: #555;
                align-items: center;
                line-height: 0;
                margin-bottom: 10rpx;

                .icon {
                  height: 20rpx;
                  margin-right: 6rpx;
                }
              }
            }

            .video {


              .player {
                margin: 20rpx 0;
                box-sizing: border-box;
                height: 400rpx;
                background-color: #eee;
                border-radius: 14rpx;
                overflow: hidden;

                position: relative;

                video {
                  width: 100%;
                  height: 100%;
                }

                .cover {
                  width: 100%;
                  height: 100%;

                  &::before {
                    content: "";
                    width: 100%;
                    height: 100%;
                    background-color: #fff;
                    position: absolute;
                    opacity: .1;
                  }
                }


                .icon {
                  width: 100rpx;
                  height: 100rpx;
                  position: absolute;
                  z-index: 11;
                  left: 50%;
                  top: 50%;
                  transform: translate(-50%, -50%);
                  opacity: .4;
                }
              }

              .desc {
                font-size: 28rpx;
                color: #000;
                line-height: 1.6em;
                margin-bottom: 10rpx;
              }
            }

            .problemAnswer {
              .problem {
                margin-top: 20rpx;
                padding: 20rpx;
                box-sizing: border-box;
                background-color: #eee;
                border-radius: 14rpx;
                background-color: #ffe3e3;

                .tit {
                  font-size: 20rpx;
                  padding: 6rpx 16rpx;
                  background-color: #ff8787;
                  font-weight: bold;
                  color: #fff;
                  display: inline-block;
                  border-radius: 10rpx;
                  margin-bottom: 10rpx;
                }

                .desc {
                  font-size: 28rpx;
                  color: #444;
                }
              }

              .answer {
                margin-top: 20rpx;
                margin-bottom: 20rpx;
                padding: 20rpx;
                box-sizing: border-box;
                background-color: rgba($color: $primary-color, $alpha: 0.2);
                border-radius: 14rpx;

                .tit {
                  font-size: 20rpx;
                  padding: 6rpx 16rpx;
                  background-color: #20c997;
                  font-weight: bold;
                  color: #fff;
                  display: inline-block;
                  border-radius: 10rpx;
                  margin-bottom: 10rpx;
                }

                .desc {
                  font-size: 28rpx;
                  color: #444;
                }
              }
            }


            .botton {
              display: flex;
              justify-content: space-between;

              .address {
                display: flex;
                background-color: #eee;
                padding: 10rpx 10rpx;
                align-items: center;
                border-radius: 8rpx;

                .icon {
                  width: 22rpx;
                  height: 22rpx;
                  margin-right: 6rpx;
                }

                .name {
                  line-height: 0;
                  font-size: 20rpx;
                }
              }

              .right {
                flex: 1;
                display: flex;
                justify-content: flex-end;

                .clas {
                  display: flex;
                  align-items: center;
                  margin-left: 30rpx;

                  .icon {
                    width: 32rpx;
                    height: 32rpx;
                    opacity: .7;
                  }

                  .num {
                    color: #777;
                    margin-left: 10rpx;
                    font-size: 24rpx;
                  }
                }
              }
            }
          }
        }
        .isNoData{
          text-align: center;
          padding-bottom: 60rpx;
          color: #999;
          font-size: 26rpx;

        }
      }
    }

  }

}


.more-list {
  padding: 30rpx;
  box-sizing: border-box;

  .title {
    text-align: center;
    font-size: 28rpx;
    font-weight: bold;
    color: #333;
    padding: 10rpx 20rpx;
    padding-bottom: 30rpx;
  }

  .box {
    // justify-content: sp;
    display: flex;

    .item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      // flex-basis: 25%;
      margin-right: 30rpx;

      .icon {
        width: 40rpx;
        height: 40rpx;
        background-color: #ddd;
        padding: 30rpx;

        border-radius: 100%;

        image {
          width: 100%;
          height: 100%;
        }

      }

      .txt {
        font-size: 26rpx;
        font-weight: bold;
        padding-top: 10px;
        color: #333;
      }
    }
  }

}